{extend name="index"/}
{block name="title"}后台管理 - {:sysconf('title')}{/block}
{block name="content"}
<section class="Hui-article-box">
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> <a href="{:url('Index/index')}">首页</a> <span class="c-gray en">&gt;</span> 财务管理 <span class="c-gray en">&gt;</span> 返佣记录<a id="btn-refresh" class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
    <div class="Hui-article">
        <article class="cl pd-20">
            <form action="">
                <div class="text-c">
                    日期范围：
                    <input type="text" onfocus="WdatePicker()" value="{:input('logmin')}" name="logmin" class="input-text Wdate" style="width:120px;">
                    -
                    <input type="text" onfocus="WdatePicker()" value="{:input('logmax')}" name="logmax" class="input-text Wdate" style="width:120px;">
                    用户ID:
                    <input type="text" value="{:input('keywords')}" name="keywords" class="input-text" style="width:120px;">
                    <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                </div>
            </form>
            <!-- <div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="l">
                    <a href="{:url('Finance/export')}" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe644;</i> 导出Execl</a>
                </span>
            </div> -->
            <div class="mt-20">
                <table class="table table-border table-bordered table-hover table-bg table-sort">
                     <thead>
                    <tr class="text-c">
                        <th width="40">ID</th>
                        <th width="100">订单号</th>
                        <th width="60">用户</th>
                        <th width="100">商品标题</th>
                        <th width="40">商品金额</th>
                        <th width="40">商品数量</th>
                        <th width="60">总额</th>
                        <th width="100">下单时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="val"}
                    <tr class="text-c">
                        <td>{$val['id']}</td>
                        <td>{$val['order_no']}</td>
                        <td>{$val['nickname']} - - {$val['true_name']}</td>
                        <td>{$val['goods_title']}</td>
                        <td>{$val['goods_sell_price']}</td>
                        <td>{$val['goods_count']}</td>
                        <td>{$val['goods_sell_price'] * $val['goods_count']}</td>
                        <td>{$val['add_time']}</td>
                    </tr>
                    {/volist}
                   <tr class="text-c"> 
                        <td colspan="2"><span style="color:red">消费总额</span></td>
                        <td colspan="2">{$sellSum}元</td>
                        <td colspan="2"><span style="color:red">奖金比例</span>　{$ratio} %</td>
                        <td colspan="2"><span style="color:red">奖金金额</span>　{$jiangjin}元</td>
                    </tr>
                    </tbody>
                </table>
                <div class="bjwl_paginate">
                    {$list->render()}
                </div>
            </div>
        </article>
    </div>
</section>
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
{/block}